class Hyperlink < ActiveRecord::Base

  belongs_to :course
  
  validates_presence_of :name
  validates_presence_of :url
  validates_presence_of :description
  validates_presence_of :course
  
  validates_uniqueness_of :url, :scope => [:url,:course_id]

end
